<?php
class Admin_Form_AddOrderStatus extends Apps_Form {
	public function init() {
		$title = new Zend_Form_Element_Text('title',
				array(
						'label'			=>	'Booking type',
						'required'		=>	true,
						'filters'		=>	array('StringTrim'),
						'validators'	=>	array(new Zend_Validate_Db_NoRecordExists(
												array(
														'table'	=>	'enquire_status',
														'field'	=>	'title'
												)))
						)
				);

		$description = new Zend_Form_Element_Textarea('description',
				array(
						'label'			=>	'Description',
						'filters'		=>	array('StringTrim'),
						)
				);

		$this->setLegend('Add New');
		$this->addElements(
				array(
						$title,
						$description
						)
				);

		$this->addActionGroup();
		$this->makeup();
	}
}
